package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.core.io.schubfach.DoubleToDecimal;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

//缴费凭据
@Data
@TableName("orders")
public class Order {
    @TableId(type= IdType.AUTO)
    private Long id;
    @TableField("in_dateTime")
    private Date inDateTime;//入场时间
    @TableField("out_DateTime")
    private Date outDateTime;//离场时间
    private PricingStandard pricingStandard;//关联收费标准
    private ParkingLot parkingLot;//关联的停车场
    private Vehicle vehicle;//关联的车辆
    private BigDecimal price;//缴费金额
    @TableField("is_PayComplete")
    private boolean isPayComplete;//是否缴费完成
    @TableField("is_RequireInvoicing")
    private boolean isRequireInvoicing;//是否开发票
    public Order(){
        this.outDateTime=new  Date();
        this.isPayComplete=this.isRequireInvoicing=false;
    }
}